<?php

/**
 * @author shuang
 * @date 2016-11-3 14:04:39
 */
use yii\helpers\Url;
use yii\helpers\ArrayHelper;

$this->title = "我要申诉";
?>
<div class="weui_tab">
    <div class="weui_panel">
        <p>    
            恶意提交不符合要求的任务截图可能导致被封号，如果您提交的任务完成图符合任务要求，可在被审核不通过后<font color="red">3天内提出申诉</font>。
        </p>
    </div>
    <div class="weui_tab_bd">
        <div class="weui_panel">
            <?php foreach ($data as $item): ?>
                <div class="weui_panel_bd">
                    <div class="weui_media_box weui_media_text">
                        <h4 class="weui_media_title">
                            <a href="javascript:;" class="pull-left" style="width:91%"><?php echo ArrayHelper::getValue($item, "title"); ?></a>
                            <?php if ($item["is_complain"] == 2): ?>
                                <a href="javascript:window.location.href='<?php echo Url::toRoute(["appeal", "id" => $item["id"]]); ?>';" class="weui_btn weui_btn_mini weui_btn_primary pull-right">申诉</a>
                            <?php else: ?>
                                <a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary pull-right"><?php echo \frontendm\models\WB_UserTaskOperate::$complain[$item["is_complain"]]; ?></a>
                            <?php endif; ?>
                        </h4>
                        <ul class="weui_media_info">
                            <li class="weui_media_info_meta">皓币：￥<?php echo Yii::$app->formatter->asDecimal($item["brush_price"]); ?></li>
                            <li class="weui_media_info_meta">时间：<?php echo Yii::$app->formatter->asDatetime($item["updated_at"]); ?></li>
                            <li class="weui_media_info_meta">原因：<?php echo Yii::$app->formatter->asText($item["complain_note"]); ?></li>
                        </ul>
                    </div>
                </div>
                <div class="clearfix"></div>
            <?php endforeach; ?>
        </div>
        <div class="pagination" style="float:right;">
            <?php
            echo
            \yii\widgets\LinkPager::widget([
                'pagination' => $pager,
                'nextPageLabel' => '下一页',
                'prevPageLabel' => '上一页',
            ]);
            ?>
        </div>
    </div>
</div>